package cn.hxzy.company.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (News)实体类
 *
 * @author makejava
 * @since 2020-08-03 22:29:57
 */
public class News implements Serializable {

    private Integer id;

    private String name;

    private String newValue;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Object creatTime;

    private User user;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNewValue() {
        return newValue;
    }

    public void setNewValue(String newValue) {
        this.newValue = newValue;
    }

    public Object getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Object creatTime) {
        this.creatTime = creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", newValue='" + newValue + '\'' +
                ", creatTime=" + creatTime +
                ", user=" + user +
                '}';
    }
}